//
//  ChainCacheTool.m
//  Chain
//
//  Created by zhaosh on 2018/4/13.
//  Copyright © 2018年 zhaosh. All rights reserved.
//

#import "ChainCacheTool.h"
#import "SDImageCache.h"

@implementation ChainCacheTool

+(NSString*)getCacheSize
{
    NSInteger totalSize =  [[SDImageCache sharedImageCache]getSize];
    NSString *cacheString = [FCFileManager sizeFormatted:[NSNumber numberWithInteger:totalSize]];
    return cacheString;
}

+(NSString *)clearCache{
    [[SDImageCache sharedImageCache]clearMemory];
    [[SDImageCache sharedImageCache]clearDiskOnCompletion:^{
        
    }];
    return @"0.0M";
}
@end
